﻿{% extends 'admin/base.html' %}

{%load comm_extras %}

{% block head_soruce %}
<script type="text/javascript" src="/static/common/js/jquery.simplemodal.1.4.min.js"></script> 
<script type="text/javascript" src="/static/admin/js/admin_master.js"></script> 
<script type="text/javascript">
	function checkUpload(){
		var val = jQuery.trim($("#file").val());
		if(val == "" || val != "" && !isimg(val)){
			alert("图片格式不正确");
			return false;
		}
		
		return true;
	}

</script>
{% endblock %}

{% block main_content %}
<form id="form1" name="form1" action="{%url admin-companyimg-edit %}"  method="POST" enctype="multipart/form-data">
	<ul id="movie-form" class="form">
	    <li>
            <h1>修改首页宣传图片</h1>
        </li>
		<li>
			<img src="/static/productimgs/{{value}}" height="200px" width="200px">
			<br/>
			<br/>
			图片规格：宽×高（1200×800）
			<br/>
			<input type="file" id="file" name="file"/>
        </li>
		<li>
			<br/>
			<input type="submit" id="btnAdd" value="保存" onclick="return checkUpload();"  style="margin-left:200px"/>
		</li>
	</ul>
</form>
{% endblock %}
